require "FairyGUI"
UIMainPageView = {}
UIMainPageView.Package = "Project"
UIMainPageView.ResName = "UIMainPage"

UIMainPageView.view = fgui.extension_class(GComponent)

function UIMainPageView.view:ctor()
	--print(self:GetChild('testBut').name)
	--bt = self:GetChild('testBut')
	--bt.onClick:Add(OnClick)
end

function OnClick()
	--UIManager:AddMainPage()
end

return UIMainPageView